package cn.skyclass.business
{
	import cn.skyclass.beans.FlexBean;

	/**
	 * 应用程序的配置信息
	 */
	public class FlexConfig extends FlexBean
	{
		public function FlexConfig(singletonEnforcer:SingletonEnforcer){}
		
		private static var instance:FlexConfig;
		public static function getInstance():FlexConfig{
			if(instance == null){
				instance = new FlexConfig(new SingletonEnforcer());
			}
			return instance;
		}
		
		/**
		 * the context path of site
		 * eg: /web-tester
		 */
		public var contextPath:String = "";		
		
		/**
		 * validate and adjust the config info
		 */
		public function validate():void{
			// nothing
		}	
	}
}


// just can access this class in this file
class SingletonEnforcer {}


